package com.chinasoft04.mall.service;

import com.chinasoft04.mall.dto.Attr;
import com.chinasoft04.mall.dto.Good;
import com.chinasoft04.mall.dto.Goods;
import org.im4java.core.IM4JavaException;
import java.io.IOException;
import java.util.List;

public interface GoodsService {
    public List<Goods> getGoods(String query, Integer pagenum, Integer pagesize);

    public Good getGood(Integer id);

    public boolean updateAttr(Attr attr);

    public boolean updateGood(Integer id,Good good);

    public boolean deleteGood(Integer id);

    public Good addGood(Good good,String realPath) throws IOException, InterruptedException, IM4JavaException;
}
